package cqie.frame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 指标备选项(EvaluateTargetOption)表实体类
 *
 * @author makejava
 * @since 2021-10-08 10:40:45
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("evaluate_target_option")
@ApiModel(description = "评价指标备选项表")
public class EvaluateTargetOption extends Model<EvaluateTargetOption> {
    //Id
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    @ApiModelProperty(value = "ID")
    private Long id;
    //备选项内容
    @TableField(value = "content")
    @ApiModelProperty(value = "备选项内容")
    private String content;
    //分值
    @TableField(value = "score")
    @ApiModelProperty(value = "分值")
    private BigDecimal score;
    //排序码
    @TableField(value = "sortCode")
    @ApiModelProperty(value = "排序码")
    private Integer sortCode;
    //评价指标Id
    @TableField(value = "evaluateTargetId")
    @ApiModelProperty(value = "评价指标Id")
    private Long evaluateTargetId;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

